<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String type = (String)session.getAttribute("CustomerType");

%>
<html>
<head>
<link href="videoStyles.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Online Video Library</title>
</head>
<body>
<script type="text/javascript">
function ConfirmCancel()
{
	var answer = confirm("Do you really want to cancel your membership?");
	if(answer != 0)
	{
		target="_top";
		location = "DeleteAccountServlet"
	}
}
</script>
<%if(type.equals("A")) {%>
<div id="videoMenu">
<a href="createmovie.jsp" target="bodyFrame" class="menu">Create Movie</a>
</div>
<div id="videoMenu">
<a href="ListEditMovieServlet" target="bodyFrame" class="menu">Edit Movie</a>
</div>
<div id="videoMenu">
<a href="ListDeleteMovieServlet" target="bodyFrame" class="menu">Delete Movie</a>
</div>
<div id="videoMenu">
<a href="listmembers.jsp" target="bodyFrame" class="menu">List Members</a>
</div>
<div id="videoMenu">
<a href="ListAllMoviesServlet" target="bodyFrame" class="menu">List Movies</a>
</div>

<div id="videoMenu">
<a href="searchcustomer.jsp" target="bodyFrame" class="menu">Customer Report</a>
</div>
<div id="videoMenu">
<a href="moviereport.jsp" target="bodyFrame" class="menu">Movie Report</a>
</div>
<div id="videoMenu">
<a href="reportbytype.jsp" target="bodyFrame" class="menu">Movie Type Report</a>
</div>
<%} %>
<%if(type.equals("P") || type.equals("S")) {%>
<div id = "videoMenu">
	<a href="ReloadAccountServlet" target="bodyFrame" class= "menu">Edit Membership Details</a>
</div>
<div id="videoMenu">
<a href="GetOrderDetailsServlet" target="bodyFrame" class="menu">View Order History</a>
</div>
<div id="videoMenu">
<a href="GetCartDetailsServlet" target="bodyFrame" class="menu">My Queue & Rent</a>
</div>
<div id="videoMenu">
<a href="ListAllMoviesServlet" target="bodyFrame" class="menu">List Movies</a>
</div>
<div id="videoMenu">
<a href="GetCategoryServlet" target="bodyFrame" class="menu">Search & Queue Movies</a>
</div>
<div id="videoMenu">
<a href="SubmitMovieServlet" target="bodyFrame" class="menu">Submit Movie</a>
</div>
<div id = "videoMenu">
	<a href="DeleteAccountServlet" target="_top" class= "menu">Cancel Membership</a>
</div>
<%} %>
</body>
</html>